package com.ts.api.module.protocol.service.impl;

import com.ts.api.module.protocol.dao.ProductProtocolDao;
import com.ts.api.module.protocol.entity.po.ProductProtocolPO;
import com.ts.api.module.protocol.entity.qo.ProductProtocolQO;
import com.ts.api.module.protocol.service.ProductProtocolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class ProductProtocolServiceImpl implements ProductProtocolService {

    @Autowired
    private ProductProtocolDao productProtocolDao;

    @Override
    public void insertProductProtocol(ProductProtocolPO productProtocolPO) {

    }

    @Override
    @Transactional(readOnly = true)
    public List<ProductProtocolPO> list(ProductProtocolQO ProductProtocolQO) {
        return productProtocolDao.list(ProductProtocolQO);
    }

    @Override
    @Transactional(readOnly = true)
    public ProductProtocolPO get(Long id) {
        return productProtocolDao.get(id);
    }

}
